package com.hxz.pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

//等价于在注册了个bean
@Component
@Scope
public class User {
    @Value("哈哈")
    public String name;
}
